<?php
namespace app\common\controller;
use think\Loader;
use think\Controller;
use think\Db;

/**
* 后台公用基础控制器
* @author lucifer
* @version 2017-10-15
*/
class IndexBaseController extends Controller {
	
    protected function _initialize() {
        parent::_initialize();
        
        if (!session('info_user')) {
            $this->redirect('index/index/login');
        }
        $this->assign('action',request()->action());
    }
}
